package cfgs.holaMundo.vistas;
import java.awt.Color;

import javax.swing.*;

@SuppressWarnings("Serial")
public class HolaMundo extends JFrame {
	private JLabel etiqueta;
	private JDialog dialogo;
	public HolaMundo(){
		this.setTitle("Mi primera Aplicacion");
		this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
		this.etiqueta = new JLabel ("Hola Mundo");
		this.getContentPane().add(etiqueta);
		this.setSize(300,200);
		//this.pack();
		this.setLocationRelativeTo(null);
		
		this.dialogo = new JDialog(this);		
		this.dialogo.setTitle("Titulo Dialogo");
		JLabel etiqueta2 = new JLabel("Bienvenidos");
		dialogo.getContentPane().add(etiqueta2);
		dialogo.setSize(100, 100);
		dialogo.setVisible(true);
		dialogo.setLocationRelativeTo(this);
		
	}
}
